//
//  Y2BackendService.h
//  Pods-Y2NetWorking_Example
//
//  Created by ycgame on 2020/11/24.
//

#import <Foundation/Foundation.h>
#import "Y2BackendConfiguration.h"
#import "Y2BackendRequest.h"

NS_ASSUME_NONNULL_BEGIN

@interface Y2BackendService : NSObject
@property(nonatomic, strong)Y2BackendConfiguration *config;

// 生成一个已被持有的对象
+ (instancetype)serviceWithSuiteName:(NSString *)name;

- (void)request:(Y2BackendRequest *)request success:(nullable void (^)(id _Nullable))success failure:(nullable void (^)(NSError * _Nonnull))failure;

@end

NS_ASSUME_NONNULL_END
